package com.org.model;

/**
 * PluginConfigAttributeId entity. @author MyEclipse Persistence Tools
 */

public class PluginConfigAttributeId implements java.io.Serializable {

	// Fields

	private PluginConfig pluginConfig;
	private String attributesKey;

	// Constructors

	/** default constructor */
	public PluginConfigAttributeId() {
	}

	/** full constructor */
	public PluginConfigAttributeId(PluginConfig pluginConfig,
			String attributesKey) {
		this.pluginConfig = pluginConfig;
		this.attributesKey = attributesKey;
	}

	// Property accessors

	public PluginConfig getPluginConfig() {
		return this.pluginConfig;
	}

	public void setPluginConfig(PluginConfig pluginConfig) {
		this.pluginConfig = pluginConfig;
	}

	public String getAttributesKey() {
		return this.attributesKey;
	}

	public void setAttributesKey(String attributesKey) {
		this.attributesKey = attributesKey;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PluginConfigAttributeId))
			return false;
		PluginConfigAttributeId castOther = (PluginConfigAttributeId) other;

		return ((this.getPluginConfig() == castOther.getPluginConfig()) || (this
				.getPluginConfig() != null
				&& castOther.getPluginConfig() != null && this
				.getPluginConfig().equals(castOther.getPluginConfig())))
				&& ((this.getAttributesKey() == castOther.getAttributesKey()) || (this
						.getAttributesKey() != null
						&& castOther.getAttributesKey() != null && this
						.getAttributesKey()
						.equals(castOther.getAttributesKey())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getPluginConfig() == null ? 0 : this.getPluginConfig()
						.hashCode());
		result = 37
				* result
				+ (getAttributesKey() == null ? 0 : this.getAttributesKey()
						.hashCode());
		return result;
	}

}